package com.foreknow.demo8;

/**
 * @author shkstart
 * @create 2021-07-28 9:52
 */
public class TestMethod {
    public int  m10(X x,Student student){
       return x.add(student);
    }
    public  X m11(X a){
        return a;
    }

    public static void main(String[] args) {
        X xi=new XImpl();
        Student s1=new Student();
        TestMethod method=new TestMethod();
        int result = method.m10(xi, s1);
        if(result==1){
            System.out.println("添加成功");
        }else {
            System.out.println("添加失败");
        }
    }
}
